// route路由设置
const appname = ' - 人员档案管理系统  （三点三网络科技提供技术支持）'
export default [
  {
    // login路由设置
    path: '/login',
    name: '登录',
    title: '人员档案管理系统',
    component: '@/pages/login/login',
  },
  {
    // layout设置
    path: '/',
    title: '人员档案管理系统',
    component: '@/layouts/layout',
    routes: [
      // 路由指派
      {
        path: '/',
        redirect: '/login',
        wrappers: ['@/wrappers/auth'],
        auth: 'user',
      },
      {
        path: '/profile/statistics',
        name: '档案统计',
        title: '档案统计'+appname,
        icon: 'tongji',
        component: '@/pages/profile/statistics',
        wrappers: ['@/wrappers/auth'],
        auth: 'user',
        view: false,
      },
      {
        path: '/profile/screen',
        name: '档案筛选',
        title: '档案筛选'+appname,
        icon: 'shaixuan',
        component: '@/pages/profile/screen',
        wrappers: ['@/wrappers/auth'],
        auth: 'user',
      },
      {
        path: '/profile/view/:profile_id',
        title: '档案详情'+appname,
        icon: 'tongji',
        component: '@/pages/profile/[profile_id]',
        view: false,
        wrappers: ['@/wrappers/auth'],
        auth: 'user',
      },
      {
        path: '/manage/import',
        name: '批量导入',
        title: '批量导入'+appname,
        icon: 'daoru',
        component: '@/pages/manage/import',
        wrappers: ['@/wrappers/auth'],
        auth: 'user',
      },
      {
        path: '/manage/input',
        name: '手工录入',
        title: '手工录入'+appname,
        icon: 'luru',
        component: '@/pages/manage/input',
        wrappers: ['@/wrappers/auth'],
        auth: 'user',
      },
      {
        path: '/manage/edit/:manage_id',
        title: '编辑档案'+appname ,
        icon: 'luru',
        component: '@/pages/manage/[manage_id]',
        view: false,
        wrappers: ['@/wrappers/auth'],
        auth: 'user',
      },
      {
        path: '/system/user',
        name: '操作人员管理',
        title: '操作人员管理'+appname,
        icon: 'renyuan',
        component: '@/pages/system/user',
        wrappers: ['@/wrappers/auth'],
        auth: 'admin',
      },
      {
        path: '/system/other',
        name: '其他设置',
        title: '其他设置'+appname,
        icon: 'shezhi',
        component: '@/pages/system/other',
        view: false,
        wrappers: ['@/wrappers/auth'],
        auth: 'user',
      },
      // { component: '@/pages/404', view: false },
      {
        path: '/upload',
        name: '其他设置',
        title: '其他设置',
        icon: 'shezhi',
        component: '@/pages/manage/img/upload_img',
        view: false,
        wrappers: ['@/wrappers/auth'],
        auth: 'user',
      },
      { component: '@/pages/manage/img/upload_img', view: false },
    ],
  },
];
